package com.freemypay.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.freemypay.entity.Emp;
import com.freemypay.service.EmpService;

/**
 * Emp接口
 * @author Administrator
 *
 */
@Controller
public class EmpController {

	@Autowired
	private EmpService empService;
	
	@RequestMapping("/selectEmp/{empno}")
	@ResponseBody
	public Emp selectByPrimaryKey(@PathVariable Long empno) {
		Emp emp = empService.selectByPrimaryKey(empno);
		return emp;
	}
	
	
}
